package com.example.demo.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entry.Carnews;
import com.example.demo.service.CarnewsService;
import com.example.demo.mapper.CarnewsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 16040
* @description 针对表【carnews】的数据库操作Service实现
* @createDate 2022-05-12 15:02:25
*/
@Service
public class CarnewsServiceImpl extends ServiceImpl<CarnewsMapper, Carnews>
implements CarnewsService{

    @Autowired
    CarnewsMapper carnewsMapper;

    @Override
    public List<Carnews> getAllByName(String name) {
        return carnewsMapper.getAllByName(name);
    }
}
